package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Commodity;
import cn.wolfcode.trip.base.domain.News;
import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import javax.sound.midi.Track;
import java.util.List;

public interface IUserService {

    void register(User user);

    User login(String email,String password);

    PageInfo query(QueryObject qo);

    User getUserByUserId(Long userId);

    boolean changeFans(Long userId, Long authorId);

    boolean relations(Long userId, Long authorId);

    List<Travel> getTravelCollections(Long userId);
    List<News> getNewsCollections(Long userId);

    boolean travelRelations(Long userId, Long travelId);

    boolean newsRelations(Long userId, Long newsId);

    boolean changeTravelCollections(Long userId, Long travelId);

    boolean changeNewsCollections(Long userId, Long newsId);
}
